#!/bin/sh
# This provides commands for testing the relative performance of the specified version of PBM_Processor_1 and netpbm on rotation operations and also allows one ( by diffing ) to verify the accuracy of the image produced by a particular version . The only argument to the script is the name of the executable to be tested .
time $1 < ./Sample_1.pbm > Original_1.pbm ; time pnmflip < ./Sample_1.pbm > Original_2.pbm ; time $1 --Rotate 1 < ./Sample_1.pbm > Rotate_1_1.pbm ; time pnmflip -r270 < ./Sample_1.pbm > Rotate_1_2.pbm ; time $1 --Rotate 2 < ./Sample_1.pbm > Rotate_2_1.pbm ; time pnmflip -r180 < ./Sample_1.pbm > Rotate_2_2.pbm ; time $1 --Rotate 3 < ./Sample_1.pbm > Rotate_3_1.pbm ; time pnmflip -r90 < ./Sample_1.pbm > Rotate_3_2.pbm ;

